<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 https://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
Route::domain('cdn.weibuyun.com', response()->code(404));
Route::domain('admin.weibuyun.com', response()->code(404));
//Route::domain('openwx.weibuyun.com', 'openwx');
Route::domain('openwx.weibuyun.com', function () {
    Route::rule('/:c/:a', 'openwx/:c/:a');
    Route::bind('openwx');
    // exit;
});
Route::domain('weiweipan.weibuyun.com', function () {
    //Route::rule('/:c/:a', 'admin/:c/:a');
    Route::bind('admin');
    // exit;
});
//网站宣传
Route::domain('www.weibuyun.com', function () {
    Route::rule('/', 'home/index/index'); // 首页访问路由
    Route::rule('qiniu/downloadurl', 'home/qiniu/downloadurl');
    Route::rule('home/:c/:a', 'home/:c/:a');
    Route::miss('home/index/index');
});
////微信开入平台

// 动态注册域名的路由规则
Route::rule('wx/:c/:a', 'wx/:c/:a');
Route::bind('admin');
//Route::miss('home/index/index');

//Route::domain('*', 'admin');
return [

];
